#include <iostream>

#include "globalsuite.h"

#include "test.h"

using namespace Tester;


GlobalSuite& GlobalSuite::instance() {
   static GlobalSuite inst;
   return inst;
}

int GlobalSuite::add(Test *test) {
   GlobalSuite::instance().tests.push_back(test);
   return 0;
}

void GlobalSuite::run(Result *result){
   for(Iterator it = GlobalSuite::instance().tests.begin(); 
         it != GlobalSuite::instance().tests.end(); ++it) {
      (*it)->run(result);
   }
}

